﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class NhaXuatBanBUS
    {
        #region 1. Them
        public static bool ThemNXB(NhaXuatBanDTO nhaxb){
            return NhaXuatBanDAO.ThemNXB(nhaxb);
        }
        #endregion 
        #region 2. Sua
        public static bool SuaNXB(NhaXuatBanDTO nhaxb)
        {
            return NhaXuatBanDAO.SuaNXB(nhaxb);
        }
        #endregion 
        #region 3. Xoa
        public static bool XoaNXB(string nhaxb)
        {
            return NhaXuatBanDAO.XoaNXB(nhaxb);
        }
        #endregion 
        #region 4. Tim kiem
        public static NhaXuatBanDTO TimNXB(String manxb){
            if (!NhaXuatBanDAO.CheckNXBByID(manxb))
            {
                return null;
            }
            return NhaXuatBanDAO.TimNXB(manxb);
        }
        public static DataTable TimTatCaNXB()
        {
            return NhaXuatBanDAO.TimTatCaNXB();
        }
        #endregion
    }
}
